Skip to main content

concat

Pagpapaliwanag

Pagsama ang one or more array. pwede kahit ilang (array) arguments.

const x = [1,2,3]
const y = [4,5,6]
const z = [7,8,9]

const a = x.concat(y,z)
console.log(a) // [1, 2, 3, 4, 5, 6, 7, 8, 9]

Iba pang resources